require '/Users/drewwhitehurst/thesis/vhdl/pixelpro/script/easy_link_creator.rb'
require '/Users/drewwhitehurst/thesis/vhdl/pixelpro/script/easy_std_vhd_file.rb'

puts ("Input Columns (x):")
buffx = gets()
buffx = buffx.chomp()

puts ("Input Rows (y):")
buffy = gets()
buffy = buffy.chomp()

vhd = File.new( "generated_controller_tb.vhd", "w" )
easy_link = Easy_Link_Creator.new( buffx.to_i(), buffy.to_i() )
std_write = Standard_VHD_File.new( vhd, easy_link )

std_write.write_beginning
std_write.write_components
std_write.write_global_signals
std_write.write_controller_signals
std_write.write_controllers
std_write.write_physical_links
std_write.write_process


std_write.write_closing

puts
puts "fin"
